﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;
using l1cs.server.templates;

namespace l1cs.server.clientpackets
{
    public class C_DeleteBookmark : ClientBasePacket
    {
        private const String _C_DETELE_BOOKMARK = "[C] C_DeleteBookmark";
        private static Logger _log = Logger.getLogger( typeof( C_DeleteBookmark ).FullName );

        public C_DeleteBookmark( byte[] decrypt, ClientThread client )
            : base( decrypt )
        {
            String bookmarkname = readS();
            L1PcInstance pc = client.getActiveChar();
            L1BookMark.deleteBookmark( pc, bookmarkname );
        }

        override
        public String getType()
        {
            return _C_DETELE_BOOKMARK;
        }
    }
}